package cn.com.cpic.insurance.rulecheck.core.exception;

/**
 * 在解析表达式时，其中的bom表达式未在上下文中找到对应的值时抛出
 * 
 * @author 代波
 * @since 2011-8-22
 */
public class BomNotFoundException extends OperateException {
	private static final long serialVersionUID = -5643643929422239435L;

	private String bom;// bom表达式

	public BomNotFoundException(String bom) {
		super(bom);
		this.bom = bom;
	}

	public BomNotFoundException(String bom, String message, Throwable cause) {
		super(message, cause);
		this.bom = bom;
	}

	public BomNotFoundException(String bom, String message) {
		super(message);
		this.bom = bom;
	}

	public BomNotFoundException(String bom, Throwable cause) {
		super(bom, cause);
		this.bom = bom;
	}

	/**
	 * 获得引起此异常的bom表达式
	 * 
	 * @return bom表达式
	 */
	public String getBom() {
		return bom;
	}
}
